import React, { useState, useEffect } from 'react';
import { EditableProTable, ProCard, ProFormField, ProFormRadio } from '@ant-design/pro-components';
import moment from 'moment';

const columns = [
  {
    title: '业务编号',
    dataIndex: 'code',
    key: 'code',
    editable: false,
  },
  {
    title: '公司名称',
    dataIndex: 'name',
    key: 'name',
    editable: false,
  },
  {
    title: '申报月份',
    dataIndex: 'tax_time',
    key: 'tax_time',
    editable: false,
    render: () => {
      return moment()?.format('YYYY-MM');
    },
  },
  {
    title: '税费',
    dataIndex: 'tax',
    key: 'tax',
    valueType: 'digit',
    width: 120,
  },
];

function Tax(props) {
  return (
    <div style={{ margin: -12 }}>
      <EditableProTable rowKey="id" columns={[...columns]} recordCreatorProps={false} {...props} />
    </div>
  );
}

export default Tax;
